https://www.mql5.com/en/code/13804